# Contributor: Cormac Stephenson <c7s@kasku.net>
# Maintainer: Cormac Stephenson <c7s@kasku.net>
pkgname=ibus-hangul
pkgver=1.5.4
pkgrel=0
pkgdesc="Korean input method engine for IBus"
url="https://github.com/libhangul/ibus-hangul"
arch="all"
license="GPL-2.0-only"
depends="py3-gobject3 gtk-update-icon-cache"
makedepends="automake autoconf libtool ibus-dev libhangul-dev gtk+3.0-dev"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/libhangul/ibus-hangul/archive/refs/tags/$pkgver.tar.gz
	0001-Update-gettext-version.patch
	0002-Use-gettext-module.patch
"
options="!check" # test requires user interaction

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexec=/usr/lib/ibus
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
9ee5a3364fdfb1ec0177c797009f9723f1c7c9bb096c24ec2a8b12340e230207df4c7fe490534dea237850822cd307c6971dec56e9767b5a9fcef82278875b01  ibus-hangul-1.5.4.tar.gz
9b8c8e4925bf4c688e96e3c35916aa5bdb1e918747c9d759307d09e37365877b2e80f9be4c08fe52c60bb28252ed644fcae0d9b10d6381673f585b9d84356686  0001-Update-gettext-version.patch
79d5bcbc7141d38d758e631661dc07285bd16be82b0426668affd43f746756d17713897fe97c3400b762241673dda9e66aa90dfe0708085f704ae67245d5b81e  0002-Use-gettext-module.patch
"
